package com.econ.powercloud.ems.dal.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 公司信息表
 * </p>
 *
 * @author
 * @since 2021-10-29
 */
@Data
@Accessors(chain = true)
public class AuthCompany implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "pid", type = IdType.ASSIGN_ID)
    private String pid;

    @TableField(value = "name")
    private String name;

    @TableField(value = "province")
    private Integer province;

    @TableField(value = "city")
    private Integer city;

    @TableField(value = "description")
    private String description;

    @TableField(value = "address")
    private String address;

    @TableField(value = "longitude")
    private String longitude;

    @TableField(value = "latitude")
    private String latitude;

    @TableField(value = "company_type")
    private Integer companyType;

    @TableField(value = "phone")
    private String phone;

    @TableField(value = "industry")
    private String industry;



    @TableField(fill = FieldFill.INSERT)
    @Version
    private Integer version;

    /**
     * 创建者
     */
    @TableField(fill = FieldFill.INSERT)
    private String createdBy;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    /**
     * 修改者
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String modifiedBy;
    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifiedAt;

    @TableField(fill = FieldFill.INSERT)
    @TableLogic(value = "0", delval = "1")
    private Integer deleteFlag;
}
